import { graphql } from "gatsby"
import React from "react"

export default function articleDetail({data}) {

  return (
    <div>
      <div>文章详情---{data?.articleMockData?.title}</div>
      <div>文章内容---{data?.articleMockData?.content}</div>
    </div>
  )
}
export const query = graphql`
  query($id: String) {
    articleMockData(id: { eq: $id }) {
      content
      title
    }
  }
`
